/*
 * Copyright (c) 2017 <l_iupeiyu@qq.com> All rights reserved.
 */

package com.jigu.admin.mapper.console;

import com.jigu.admin.model.console.Menu;
import com.jigu.core.Base.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
 * 菜单
 */
public interface MenuMapper extends BaseMapper<Menu> {
    /**
     * 根据用户id查询菜单
     * @param userId
     * @return
     */
    Set<String> findMenuCodeByUserId(String userId);

    /**
     * 获取所有菜单
     * @return
     */
    Set<String> getALLMenuCode();

    /**
     *
     * @param userId
     * @return
     */
    List<Menu> selectMenuByAdminId(String userId);

    List<Menu> selectAllMenu();

    List<Menu> selectMenuByRoleId(String roleId);
}
